package the.guanzhong.express.infrastructure.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.wisteria.framework.web.mvc.entity.SuperEntity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName("express_order")
public class OrderDO extends SuperEntity implements Serializable {
    private static final long serialVersionUID = 6110754610923794977L;

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer tenantId;

    private String userId;
    private Date orderTime;
    private Integer orderStatus;

    private Integer fromTakeType;
    private Integer fromShopId;
    private String fromShopName;
    private String fromLinkman;
    private String fromPhone;
    private String fromAddress;

    private Integer toTakeType;
    private Integer toShopId;
    private String toShopName;
    private String toLinkman;
    private String toPhone;
    private String toAddress;

    private Integer transWay;
    private BigDecimal agreementFee;
    private String goodsInfo;
    private Integer couponId;

    private Date payTime;
    private BigDecimal payFee;
    private Integer payProvider;

    private Integer ifOften;

    private String outTransactionId;
}
